Optimal. Leaf size=56 \[ -\frac {1}{3} \left (-x^2+2 x+8\right )^{3/2}-\frac {1}{2} (1-x) \sqrt {-x^2+2 x+8}-\frac {9}{2} \sin ^{-1}\left (\frac {1-x}{3}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {640, 612, 619, 216} \[ -\frac {1}{3} \left (-x^2+2 x+8\right )^{3/2}-\frac {1}{2} (1-x) \sqrt {-x^2+2 x+8}-\frac {9}{2} \sin ^{-1}\left (\frac {1-x}{3}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 216
Rule 612
Rule 619
Rule 640
Rubi steps
\begin {align*} \int x \sqrt {8+2 x-x^2} \, dx &=-\frac {1}{3} \left (8+2 x-x^2\right )^{3/2}+\int \sqrt {8+2 x-x^2} \, dx\\ &=-\frac {1}{2} (1-x) \sqrt {8+2 x-x^2}-\frac {1}{3} \left (8+2 x-x^2\right )^{3/2}+\frac {9}{2} \int \frac {1}{\sqrt {8+2 x-x^2}} \, dx\\ &=-\frac {1}{2} (1-x) \sqrt {8+2 x-x^2}-\frac {1}{3} \left (8+2 x-x^2\right )^{3/2}-\frac {3}{4} \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{36}}} \, dx,x,2-2 x\right )\\ &=-\frac {1}{2} (1-x) \sqrt {8+2 x-x^2}-\frac {1}{3} \left (8+2 x-x^2\right )^{3/2}-\frac {9}{2} \sin ^{-1}\left (\frac {1-x}{3}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 42, normalized size = 0.75 \[ \frac {1}{6} \left (\sqrt {-x^2+2 x+8} \left (2 x^2-x-19\right )-27 \sin ^{-1}\left (\frac {1}{3}-\frac {x}{3}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.76, size = 54, normalized size = 0.96 \[ \frac {1}{6} \, {\left (2 \, x^{2} - x - 19\right )} \sqrt {-x^{2} + 2 \, x + 8} - \frac {9}{2} \, \arctan \left (\frac {\sqrt {-x^{2} + 2 \, x + 8} {\left (x - 1\right )}}{x^{2} - 2 \, x - 8}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 32, normalized size = 0.57 \[ \frac {1}{6} \, {\left ({\left (2 \, x - 1\right )} x - 19\right )} \sqrt {-x^{2} + 2 \, x + 8} + \frac {9}{2} \, \arcsin \left (\frac {1}{3} \, x - \frac {1}{3}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 43, normalized size = 0.77 \[ \frac {9 \arcsin \left (\frac {x}{3}-\frac {1}{3}\right )}{2}-\frac {\left (-x^{2}+2 x +8\right )^{\frac {3}{2}}}{3}-\frac {\left (-2 x +2\right ) \sqrt {-x^{2}+2 x +8}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.98, size = 52, normalized size = 0.93 \[ -\frac {1}{3} \, {\left (-x^{2} + 2 \, x + 8\right )}^{\frac {3}{2}} + \frac {1}{2} \, \sqrt {-x^{2} + 2 \, x + 8} x - \frac {1}{2} \, \sqrt {-x^{2} + 2 \, x + 8} - \frac {9}{2} \, \arcsin \left (-\frac {1}{3} \, x + \frac {1}{3}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 47, normalized size = 0.84 \[ -\frac {\sqrt {-x^2+2\,x+8}\,\left (-8\,x^2+4\,x+76\right )}{24}-\frac {\ln \left (x-1-\sqrt {-x^2+2\,x+8}\,1{}\mathrm {i}\right )\,9{}\mathrm {i}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x \sqrt {- \left (x - 4\right ) \left (x + 2\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________